package com.hx.observer.advice;

/**
 * @author Huathy
 * @date 2021-09-06 22:05
 * @description
 */
public class ObserverTest {
    public static void main(String[] args) {
        Forum forum = Forum.getInstance();
        User user = new User("Huathy");
        User xiha = new User("xiha");
        Info info = new Info("xixi","您好呀😁");
        forum.addObserver(user);
        forum.addObserver(xiha);
        forum.publish(info);

//        java.awt.Event
    }
}
